// LocalStorageService.ts
const event = new Event('localStorageChanged');
const customSetItem = (key: string, value: string): void => {    
const oldValue = localStorage.getItem(key);    
localStorage.setItem(key, value);    
// if (oldValue!== value) {        
window.dispatchEvent(event);

    // }
};
export { customSetItem };    